package com.conversationboard.model;

import java.sql.SQLException;

import com.conversationboard.model.propertybag.Property;
import com.conversationboard.model.propertybag.PropertyBag;

public class SiteMessage {

    public static String getMessage() throws SQLException {

        Property siteMessage = PropertyBag.get("sitemessage");

        if ((siteMessage != null) && (siteMessage.getValue().trim().length() > 0)) {
            return siteMessage.getValue();
        } else {
            return null;
        }

    }


    public static void setMessage(String message) throws SQLException {
        PropertyBag.put("sitemessage", message);
    }

}
